<template>
  <div>{{ rCount }}</div>
</template>
<script setup>
import { ref, watchEffect } from 'vue'
const count = 0
const rCount = ref(count)
watchEffect(() => {
  console.log('渲染', rCount.value)
})
for (let i = 1; i <= 5; ++i) {
  // rCount.value = i
  setTimeout(() => {
    rCount.value = i
  }, 0)
}
</script>
